package com.wad.manager.mapper;

import com.wad.entity.product.Category;
import com.wad.vo.product.CategoryExcelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wad
 * @date 2023/12/05 14:21
 * @project e-commerce
 **/
@Mapper
public interface CategoryMapper {
    List<Category> selectCategoryList(@Param("id") Long id);

    int selectCountByParentId(@Param("id") Long id);

    List<Category> findAll();

    void batchInsert(List<CategoryExcelVo> cacheDataList);
}
